
//
//  UIColor+Extension.swift
//  KeepCliming
//
//  Created by 鱼龙之梦 on 15/9/14.
//  Copyright © 2015年 panyanzhi. All rights reserved.
//

import UIKit

extension UIColor {
   //MARK:--- 提供一个类方法
    class func randomColor()->UIColor {
        let r = CGFloat(random()%256)/255
        let g = CGFloat(random()%256)/255
        let b = CGFloat(random()%256)/255
        return UIColor(red: r, green: g, blue: b, alpha: 1.0)
    }
}
